package com.prp.algorithm;

import java.util.ArrayList;

import com.prp.db.po.RecommendationEntity;
import com.prp.db.po.SubjectCategory;
import com.prp.db.po.SubjectChildCategory;
import com.prp.db.po.SubjectRecommendation;

public class test {
	public static void main(String args[]) {
		ArrayList<SubjectCategory> sclist = SubjectsRecommend.getSubjectCategoryRecommend(5);
		System.out.println("////////////////////////////");
		for( int i = 0; i < sclist.size(); i++){
			System.out.println(i+ " : "+sclist.get(i).getCategoryName());
		}
		ArrayList<SubjectChildCategory> scclist = SubjectsRecommend.getSubjectChildCategoryRecommend(10);
		System.out.println("////////////////////////////");
		for (int i = 0; i < scclist.size(); i++) {
			System.out.println(i + " : " + scclist.get(i).getChildCategoryName());
		}
		ArrayList<SubjectRecommendation> srlist = SubjectsRecommend.getSubjectRecommendationRecommend(10);
		System.out.println("////////////////////////////");
		for (int i = 0; i < srlist.size(); i++) {
			System.out.println(i + " : " + srlist.get(i).getSubjectTitle());
		}
		ArrayList<RecommendationEntity> relist = SubjectsRecommend.getRecommendationEntityRecommend(10);
		System.out.println("////////////////////////////");
		for (int i = 0; i < relist.size(); i++) {
			System.out.println(i + " : " + relist.get(i).getEntityName());
		}
		srlist = SubjectsRelatedRecommend.getSubjectRecommend(10, 100);
		System.out.println("////////////////////////////");
		for (int i = 0; i < srlist.size(); i++) {
			System.out.println(i + " : " + srlist.get(i).getSubjectTitle());
		}
		ArrayList<Integer> nrList = NeighboursRecommend.recommend(100);
		System.out.println("////////////////////////////");
		for (int i = 0; i < nrList.size(); i++) {
			System.out.println(i + " : " + nrList.get(i));
		}
	}
}
